import java.util.Scanner;

public class App {
    public static void main(String[] args)  {
        Scanner keyboard=new Scanner (System.in);
        int age;
        double income,cute;
        boolean allowed;

        System.out.print("Enter your age:");
        age=keyboard.nextInt();

        System.out.print("Enter your yearly income:");
        income=keyboard.nextDouble();

        System.out.print("How cute are you,on a scale from 0.0to 10.0?");
         cute=keyboard.nextDouble();

         allowed=(age>25&&age<40&&(income>50000||cute>=8.5));

            System.out.println("Allowed to dete my grandchild?"+allowed);

        
    }
}
